package dimension.starry.utils;

import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;

public class StreamUtils {

    public static Stream<?> of(Collection<?> collection) {
        return Optional.ofNullable(collection).orElse(Collections.emptyList()).stream();
    }

}
